// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import store from './store/store'
import router from './router'

//引入fastClick 解决移动端点击300ms延迟
// import fastClick from 'fastclick'
// fastClick.attach(document.body)

//引入nomalize.css(reset.css)初始化页面样式
//引入border.css 解决1px边框问题
//引入iconfont 图标库
import 'styles/css/reset.css'
import 'styles/css/border.css'
import 'styles/css/iconfont.css'
import 'styles/css/iconfont'

//引用Element UI
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//引入vue-awesome-swiper(轮播图插件)
import VueAwesomeSwiper from 'vue-awesome-swiper'
// require styles
import 'swiper/dist/css/swiper.css'
Vue.use(VueAwesomeSwiper);

Vue.config.productionTip = false;


Vue.prototype.noScroll = function () {
  const mo = function (e) { e.preventDefault() }
  document.body.style.overflow = 'hidden'
  document.addEventListener('touchmove', mo, false)// 禁止页面滑动
}
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
